-- cmd_take_achiv_bonus
-- Create by chengb Jul/11/2015
-- 领取迷宫成就奖励

function Operation.cmd_take_achiv_bonus(dungeonId, index)
    -- 客户端先领取
    if not AchievementM.doBonus(dungeonId, index) then
        return;
    end

    -- 记录起来，需要进行同步
    local v = { ["dungeon_id"] = dungeonId, ["index"] = index - 1};
    SyncM.addMessage("CMD_TAKE_ACHIV_BONUS", v);
    SyncM.startSync();
end
